package com.zx.cloud.controller.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.zx.cloud.ApiVersion;
import com.zx.cloud.domain.VerifyEntity;
import com.zx.cloud.model.response.ObjectDataResponse;

/**
 * @Description:
 *
 * @author       Yan Weiwei
 * @Create Time: 2017年11月9日上午9:19:57
 */
@FeignClient(name = VerifyClient.SERVICE_ID, fallback = VerifyClientFallback.class)
public interface VerifyClient {

	/**
     * eureka service name
     */
    String SERVICE_ID = "trade-provider";
    
    @RequestMapping(value =ApiVersion.PROVIDER_V1_PREFIX+"/verify/idcardOcr", method = RequestMethod.POST)
    ObjectDataResponse<String> idcardOcr(VerifyEntity verifyEntity);
    
    @RequestMapping(value =ApiVersion.PROVIDER_V1_PREFIX+"/verify/checkLiveness", method = RequestMethod.POST)
    ObjectDataResponse<String> checkLiveness(VerifyEntity verifyEntity);
}
